<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="nc.vo.sm.UserVO"%>
<%@ page import="nc.vo.ebvp.logindex.pojo.Constant"%>
<%@ page import="nc.bs.ebvp.sourcingcoll.Constants"%>
<%@ page import="nc.bs.ebvp.sourcingcoll.form.PriceDetailForm"%>
<%@ page import="nc.bs.ebvppub.ebvpservicefactory.LoadConfigProperty"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="s" %> 
<%@ taglib uri="/WEB-INF/lang-support.tld" prefix="lang-support"%>  
<%  
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	if(basePath.endsWith("/")){
		basePath = basePath.substring(0,basePath.length()-1);
	}
	String strProjPk = request.getParameter("pkProj");
	//2：发采购文件环节，3：发布与应答环节
	String type = request.getParameter("type");
	String strParaEc021 = (String) request.getSession().getAttribute(Constants.ID_EC021);
	String strParaEc022 = (String) request.getSession().getAttribute(Constants.ID_EC022);
	UserVO userVo = (UserVO) request.getSession().getAttribute(Constant.USER_INFO);
	boolean isClientCa = false; 
	boolean isServerCa = false;
	//供应商客户端是否支持CA
	if ("Y".equalsIgnoreCase(strParaEc021)
			|| (null != userVo.getIsca() && userVo.getIsca().booleanValue())) {
		isClientCa = true;
	}
	//招投标服务器是否支持CA
	if ("Y".equalsIgnoreCase(strParaEc022)) {
		isServerCa = true;
	}
	//CA厂商名称
	String strCaFactory = (String) request.getSession().getAttribute(LoadConfigProperty.EBVP_CA_FACTORY);
	String strReadOnly = (String)request.getAttribute("readonly");
	//获取报价模板信息
	Map<String, List<String>> mapPriceItemInfo = (Map<String, List<String>>)request.getAttribute(Constants.MAP_SOURCING_PRICE_TPLT);
	
	List<String> items=(List<String>)request.getAttribute("PRICE_DATA_ITEMS");
	//items.add("项目部");//蜀电
%>
<html>
<head>
		<script type="text/javascript">
			var strProjStepPk="${REPLY_FORM.pk_purproj_step}";
			var strProjPk="${REPLY_FORM.pk_pur_project}";
			var ebvpContext = "<%=basePath%>";
			var isClientCa = "<%=isClientCa%>";
			var type = "<%=type%>";
			//单价精度
			var intPricePrecision = ${PRICE_PRECISION};
			//金额精度
			var intMnyPrecision = ${MONEY_PRECISION};
			//设置供应商已经报价的个数
			//var intProdCount = ${PRICE_COUNT} + 1;
			//是否允许部分报价
			var isPartPrice = "${PURPROJECT_FORM.isPartPrice}";
			//是否严格控制数量
			var isCtrlAmount = "${PURPROJECT_FORM.iscontrolnum}";
			//是否存在延时并允许应答
			var isDelayCanReply = "${isDelayCanReply}";
			//是否处理通过
			var isHandlePass = "${REPLY_FORM.handleResult}";
			var msg = "${msg}";
			var strSelLan = "${sel_lan}";
			//产品明细个数
			var intProdCount = ${PROD_COUNT};
			
			//选择之前的区域主键
			var oldvalue="";
			
			var area_id ="";
			
			var orgitems="${orgitems}";
			//报价明细是否被修改
			var is_edit=false;
			//是否可以报价
			var is_canprice="${STEP_VO.step_status}";
			
			var is_start_price="${is_start_price}";
			var xmb="${xmb}";//蜀电
			
			//是否是配置单
			var price_tplt_type="${RELEASE_FORM.price_tplt_type }";
			
		</script>
		<link rel="stylesheet" type="text/css" href="commonres/common/frame/src/css/picker.css" />
		<link rel="stylesheet" type="text/css" href="commonres/common/frame/src/css/bid.css" />
		<script type="text/javascript" src="<%=path%>/commonres/common/frame/src/js/bid_purchase.js"></script>
		<script type="text/javascript" src="<%=path%>/commonres/common/frame/src/js/bid_flow.js"></script>
		
 		<script type="text/javascript" src="<%=path%>/commonres/common/frame/src/js/bid_pricedata.js"></script>
 		<script type="text/javascript" src="<%=path%>/commonres/common/frame/src/js/bid_calpricedata.js"></script>
 		<script type="text/javascript" src="<%=path%>/commonres/common/frame/src/js/bid_releaseqa.js"></script>
 		
		<script type="text/javascript" src="<%=path%>/js/jquery.form.js"></script>
		
		<%if(isClientCa||isServerCa){%>
		<%if(Constants.CA_FACTORY_ITRUS.equals(strCaFactory)){%>
		<script type="text/javascript" src="js/itrusforNC.js"></script>
		<script type="text/javascript" src="js/pta.js"></script>
		<%} else if(Constants.CA_FACTORY_INFOSEC.equals(strCaFactory)){%>
		<script type="text/javascript" src="js/Infosec4NC.js"></script>
		<%} else if(Constants.CA_FACTORY_DEAN.equals(strCaFactory)){%>
		<script type="text/javascript" src="js/DatechJs.js"></script>
		<%} %>
		<%}%>
		<lang-support:langres resid="ec22400_0;ec22211_0" />
		<style type="text/css"> 
		    .fixTop { 
				z-index:102; 
				background-color:#83AFD0; 
				color:#FFFFFF; 
				position:relative; 
				Top:expression(document.getElementById('tableContainer').scrollTop); 
			}     
			.fixLeft { 
				z-index:101; 
				position:relative; 
				left:expression(document.getElementById('tableContainer').scrollLeft); 
			} 
			
			.mnytxt{
			 	text-align:right;
			}
			.countxt{
				text-align:center;
			}
			
		</style> 
</head>
<body>
<!-- Document Content -->
<form action="" method="post" name="replyform" id="replyform">
<input type="hidden" name="casn" value=""/>
<input type="hidden" name="pk_file" />
<input type="hidden" name="file_name" />
<input type='hidden' name="caption"/>
<input type='hidden' name="captionkey"/>
<input type="hidden" name="title_type" id="title_type" value="0" />
<input type="hidden" name="type_title" id="type_title" value="0" />

<div class="float_center doc_width">
	<div class="doc_content_shadow">
		<div class="doc_content_quote_head">
			<div id="managementAdd"  style="height:15px; margin-top:30px; margin-left:20px; " class="bid_content_gh" >
				<!-- <a href="#"  class="color_0069b9"  onclick="hideInform(false)" >基本信息</a> -->
				<strong><a class="management_add"></a><a  style="font-size: 15px;" >基本信息</a> </strong>   <strong style="display: none;" id="base">&nbsp;&nbsp;&nbsp;&nbsp;</strong>
			</div>	
		</div>
		<div class="doc_content_quote"  id="managementInfo" >
			<div id="bidFlowMore" class="bid_flow"></div>
			<div class="bid_content">
				<div class="bid_content_inner">
				   <div id="countdownTimer" class="bid_module bdbtm w_690px pd_10x5px"></div>
				    <div class="bid_module quoted pd_16x0px bdbtm">
				    	<div class="float_left w_100ps">
				            <div class="float_left w_430px mrg_rit20px">
				                <span resid="0ec22211-000050" class="float_left w_94px align_right">类型：</span>
				                <span>${PURPROJECT_FORM.sugg_pur_method}</span>
				            </div>
				            <div class="float_left w_230px mrg_rit20px">
				                <span resid="0ec22211-000051" class="float_left w_110px align_right">发起时间：</span>
				                <span>${PURPROJECT_FORM.begin_exec_date}</span>
				            </div>
				        </div>
				        <div class="float_left w_100ps">
				            <div class="float_left w_430px mrg_rit20px">
				                <span resid="0ec22400-000109" class="float_left w_94px align_right">币种：</span>
				                <span>${PURPROJECT_FORM.currency_name}</span>
				            </div>
				        </div>
				        <div class="float_left w_100ps">
				            <div class="float_left w_430px mrg_rit20px">
				                <span resid="0ec22211-000053" class="float_left w_94px align_right">提交人：</span>
				                <span>${REPLY_FORM.commit_psn_name}</span>
				            </div>
				            <div class="float_left w_230px mrg_rit20px">
				                <span resid="0ec22211-000054" class="float_left w_110px align_right">提交时间：</span>
				                <span>${REPLY_FORM.commit_time}</span>
				            </div>
				        </div>
				        <div class="float_left w_100ps">
				            <div class="float_left w_430px mrg_rit20px">
				                <span resid="0ec22211-000001" class="float_left w_94px align_right">应答截止时间：</span>
				                <span>${RELEASE_FORM.bid_end_time}</span>
				            </div>
				            <div class="float_left w_230px mrg_rit20px">
				                <span resid="0ec22211-000093" class="float_left w_110px align_right">标书类型：</span>
				                <span>${RELEASE_FORM.biddoc_type}</span>
				            </div>
				        </div>
				        <div class="float_left w_100ps">
				        	<div class="float_left w_430px mrg_rit20px">
				                <span resid="0ec22211-000055" class="float_left w_94px align_right">开启时间：</span>
				                <span>${RELEASE_FORM.unseal_time}</span>
				            </div>
				            <div class="float_left w_230px mrg_rit20px">
					            <span resid="0ec22211-000094" class="float_left w_110px align_right">截止时间延长至：</span>
					            <span>${RELEASE_FORM.delayTime}</span>
				            </div>
				        </div>
				        <div class="float_left w_100ps">
				            <span resid="0ec22211-000002" class="float_left w_94px align_right">开启地点：</span>
				            <span class="float_left w_600px">${RELEASE_FORM.unseal_addr}</span>
				        </div>
				        <div class="float_left w_100ps">
				            <span resid="0ec22211-000003" class="float_left w_94px align_right">备注：</span>
				            <span class="float_left w_600px">${RELEASE_FORM.memo}</span>
				        </div>
				    </div>
				    <div class="bid_notice_title" style="margin-left:29px">
                    	<a resid="0ec22211-000004" href="javascript:hideInfor(true);" class="color_0069b9">要求</a>
                    </div>
				    <div class="bid_module detail pd_10x5px" id="demand">
				        <div class="float_left w_100ps">
				            <div class="float_right w_640px">
				                <strong resid="0ec22211-000005">交货要求：</strong><br/>
				                <div style="overflow:hidden;word-wrap:break-word">${RELEASE_FORM.deliver_request}</div>
				            </div>
				            <div class="float_right w_640px">
				                <strong resid="0ec22211-000006">付款要求：</strong><br/>
				                <div style="overflow:hidden;word-wrap:break-word">${RELEASE_FORM.pay_request}</div>
				            </div>
				            <div class="float_right w_640px">
				                <strong resid="0ec22211-000007">报价要求：</strong><br/>
				                <div style="overflow:hidden;word-wrap:break-word">${RELEASE_FORM.price_request}</div>
				            </div>
				        </div>
				        <div class="float_right color_0069b9">
				            <span resid="0ec22211-000087">［</span><a resid="0ec22211-000008" href="javascript:hideInfor(false);" class="color_0069b9">了解</a><span resid="0ec22211-000088">］</span>
				        </div>
				    </div>
				</div>
				<div resid="0ec22211-000009" class="bid_invited_content_title">采购文件应答</div>
				<div class="bid_content_inner pd_5x0px" id="releaseFile">
				<c:if test="${RELEASE_FILE_FORM != null}">
					<c:forEach items="${RELEASE_FILE_FORM}" var="file">
				    <div class="bid_invited_file_list <c:if test='${file.index > 1}'>bdtop_dashed</c:if>">
				        <div class="float_left w_690px">
				        	<c:if test="${file.file_type == '1'}">
				            <div class="float_right">
				            	<% if (!"readOnly".equals(strReadOnly)){%>
				                <a href="javascript:uploadFile('${file.pk_release_file_b}');" class="btn_gray btn_save">
				                    <span resid="0ec22211-000010" class="w_66px">应答</span>
				                </a>
				                <span style="color:red;" >（最大为20M）</span>
				               	<%}%>
				            </div>
				            </c:if>
				            <input type="hidden" name="pub_file_pk" id="pub_file_pk" value="${file.pk_release_file_b}" />
							<input type="hidden" name="pub_file_name" id="pub_file_name" value="${file.file_name}" />
				            <span>${file.index}、</span>
				            <c:if test="${file.file_type == '1'}">
								<span resid="0ec22211-000014">采购文件</span>
				            </c:if>
				             <c:if test="${file.file_type == '2'}">
								<span resid="0ec22211-000096">补充文件</span>
				            </c:if>
							<a href="javascript:downloadFile('${file.pk_file}','${file.file_name}');" style="text-decoration:none"><span class="color_0062b0">${file.file_name}</span></a>
				            <span> (${file.file_size}KB) </span>
				            [<a resid="0ec22211-000011" href="javascript:downloadFile('${file.pk_file}','${file.file_name}');">下载</a>]
				            <% if (isServerCa) {%>
								<a class="btn_blue" id="onCheckFile" name="onCheckFile" href="javascript:verifyFile('${file.signature}','${file.index}');;" style="margin-left:3px;float:right"><span resid="0ec22211-000089" class="w_34px h_18px ft_14px">验签</span></a>
								<input name="fileName" type="file" style="float:right" size="10" />
							<% } %>
				            <span class="bid_invited_file_note">${file.file_note}</span>
				        </div>
				    </div>
					</c:forEach>
				</c:if>
				</div>
				<div resid="0ec22211-000012" class="bid_invited_content_title">投标文件</div>
				<div class="subpage_table" style="width:728px;margin-top:0px;padding:0px">
				<table id="bidFileTable" cellpadding="0" cellspacing="0" style="width:728px">
					<thead>
					<tr>
						<td resid="0ec22211-000013" width="30px">序号</td>
						<td resid="0ec22211-000014" width="200px">采购文件</td>
						<td resid="0ec22211-000015" width="240px">应答文件</td>
						<td resid="0ec22211-000016" width="50px">大小</td>
						<td resid="0ec22211-000017" width="160px">备注</td>
						<td resid="0ec22211-000018" width="48px">删除</td>
					</tr>
					</thead>
					<c:if test="${REPLY_FILE_FORM != null}">
						<c:forEach items="${REPLY_FILE_FORM}" var="file">
			  				<tr id="${file.pk_file}" <c:if test="${file.index%2==0}">class="odd"</c:if>>
								<input type="hidden" id="reply_file_real_path" name="reply_file_real_path" value="${file.real_path}"/>
								<input type="hidden" id="pk_release_file_b" name="pk_release_file_b" value="${file.pk_release_file_b}" />
								<td>${file.index}</td>
								<td class="yincang">${file.release_file_name}</td>
								<td>${file.file_name}<input type="hidden" id="reply_file_name" name="reply_file_name" value="${file.file_name}" /></td>
								<td><span id="showSize">${file.file_size}</span>KB<input type="hidden" id="reply_file_size" name="reply_file_size" value="${file.file_size}" /></td>
								<td>${file.file_note}<input type="hidden"  name="fileMemo" value="${file.file_note}" >&nbsp;</td>
								<td>
									<% if (!"readOnly".equals(strReadOnly)){%>
									<a id="onDelete" href="javascript:delFile('${file.pk_file}');" class="btn_gray btn_save"><span resid="0ec22211-000019" class="w_66px">删除</span></a>
									<%}%>
								</td>
							</tr>
						</c:forEach>
					</c:if>
				</table>
				</div>
			</div>
			
			
			<div class="bid_column_right">
			    <div class="sidebox">
			        <div class="box_title bg_blue">
			            <span class="title_icon noicon"></span>
			            <span resid="0ec22211-000049" class="title_name">项目信息</span>
			        </div>
			        <div class="sidebox_bd bdbtm bdgray">
			            <div class="bid_column_content" sytle="height:182px">
			           		发起组织：${org_name}<br>
			                方案名称：${PURPROJECT_FORM.project_name}
			                <div class="float_left w_100ps">
			                    <span resid="0ec22211-000050">类型：</span><span>${PURPROJECT_FORM.sugg_pur_method}</span>
			                </div>
			                <div class="float_left w_100ps">
			                    <span resid="0ec22211-000051">发起时间：</span><span>${PURPROJECT_FORM.begin_exec_date}</span>
			                </div>
			                <div class="float_left w_100ps">
			                    <span resid="0ec22400-000109">币种：</span><span>${PURPROJECT_FORM.currency_name}</span>
			                </div>
			                 <div class="float_left w_100ps">
			                    <span >招标发起人：</span><span>${pk_pur_personname}</span>
			                </div>
			                 <div class="float_left w_100ps">
			                    <span >邮箱地址：</span><span>${emali}</span>
			                </div>
			                 <div class="float_left w_100ps">
			                    <span >座机：</span><span>${officephone}</span>
			                </div>
			            </div>
			        </div>
			    </div>
			    <div class="sidebox">
			        <div class="box_title bg_blue">
			            <span class="title_icon noicon"></span>
			            <span resid="0ec22211-000052" class="title_name">当前步骤信息</span>
			        </div>
			        <div class="sidebox_bd bdbtm bdgray">
			            <div class="bid_column_content "><!-- <div class="bid_column_content h_165px"> 调整小窗口的体高度-->
			                <div class="float_left h_130px">
			                    <span resid="0ec22211-000053">提交人：</span><span>${REPLY_FORM.commit_psn_name}</span>
			                </div>
			                <div class="float_left w_100ps">
			                    <span resid="0ec22211-000054">提交时间：</span><span>${REPLY_FORM.commit_time}</span>
			                </div>
			            </div>
			        </div>
			    </div>
			
				<div class="sidebox">
				 
				        <div class="box_title bg_blue">
				            <span class="title_icon noicon"></span>
				            <span  class="title_name">
				            澄清答疑
				            </span>
				            <input type="hidden" id="type" name="type" value="<%=type%>"/>
				             <a href="javascript:openReleaseqa('${PURPROJECT_FORM.pk_group}','${PURPROJECT_FORM.pk_org}','${PURPROJECT_FORM.pk_pur_project}');" id="bidReleaseqa" name="detail" style="float:right;margin-top:6px;margin-right:7px">
						        <span>更多>></span>
						        <input type="hidden" id="pk_release_h"  value="${RELEASE_FORM.pk_release_h}"/>
						        <input type="hidden" id="pk_purproj_step"   value="${RELEASE_FORM.pk_purproj_step}"/>
						        <input type="hidden" id="pk_pur_project"   value="${RELEASE_FORM.pk_pur_project}"/>
						      
						    </a>
				        </div>
				        <div class="sidebox_bd bdbtm bdgray">
				            <div class="bid_column_content h_280px">
				                <div class="float_left w_100ps">
				                    <span >标题：</span>
				                    <span>
				                    <input id="questiontitle" name="questiontitle"  class="textfield w_172px pd_5x2px" />
									</span>
				                </div>
				                <div class="float_left w_100ps">
				                    <span >问题描述：</span>
				                    <span><textarea  id="questiondescribe" name="questiondescribe" class="textfield w_172px pd_5x2px" rows="4" ></textarea></span>
				                    
				                </div>
				                <div class="float_left w_100ps">
				                    <span><br>
				                    <input type="text" id="fujian"  name="fujian" style="display:none;background:transparent;border:1px solid #ffffff" value="" size="10"  readOnly />
									<img  id="imger" style="display:none" onclick='deleted();' src='commonres/common/frame/src/img/deleteAffix.png'></img>
									<span class="words" style="color:red;display:block;">只能上传一个文件</span>	<br>
				                    <a href="javascript:uploadMyFile();" id="upload"> <span >上传文件</span>
									</a>
									
									<input type="hidden" id="all_path" name="all_path" class="textfield pd_5x2px w_485px" value=""/>
									<input type="hidden" id="real_path" name="real_path" class="textfield pd_5x2px w_485px" value=""/>
									<input type="hidden" id="file_size" name="file_size" class="textfield pd_5x2px w_485px"  value=""/>
					            	<input type="hidden" id="qafile_name" name="qafile_name" class="textfield pd_5x2px w_485px"  value=""/>
									<input type="hidden" id="opinion" name="opinion" value="0"/>
									<!--  <a  class="btn_orange" onclick="releaseqAjax()"> <span>提交</span> </a>-->
									 <!-- <a onclick="releaseqAjax()" id="bidReleaseqa" name="detail" class="btn_gray btn_save">
									        <span class="w_550px h_18px" >提交</span>
									    </a>-->
									    
									    <a > <span class="w_50px h_18px" ></span> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									 <input type="button" onclick="releaseqAjax()" id="upload" name="" value="提交" class="w_50px h_18px" style="width:60px;height:25px;font-family:'宋体',SimSun,serif ;color:black;">
									 <!-- <a onclick="releaseqAjax()" id="upload"> <span class="w_50px h_18px">提交</span> 
									</a>-->
									</span>
				                    
				                </div>
				                <div ><span class="w_50px h_18px" style="display: none;color:red;" id="massage" >提交成功</span>
				                <span class="w_230px h_18px" style="display: none;color:red;" id="later" >
				                <c:if test="${STEP_VO.step_status == 3}">应答已完成，无法提交！</c:if>
				                <c:if test="${STEP_VO.step_status == 4}">应答已终止，无法提交！</c:if>
				                <c:if test="${STEP_VO.step_status != 4&&STEP_VO.step_status != 3}">已过了应答期限，无法提交！</c:if>
				                </span>
				                </div>
				                <div><span class="w_50px h_18px" id="massage" ></span></div>
				              
				            </div>
				        </div>
				         
				    </div>
			
			
			
			</div>
		</div>
	</div>
</div>	

<div class="float_center doc_width">
	<div class="doc_content_shadow">
	<!--	<div class="doc_content_head">
			<a  class="color_0069b9" id="manage">报价单元</a>
		</div>-->
		
		<div class="doc_content_quote" >
			<div class="bid_content_gh" id="">
				<c:if test="${RELEASE_FORM.is_quote == \"true\"}">
				<div class="bid_module_title" style="margin-top:1px;margin-right:30px;" id="manage">
				    <strong  ><a class="manage_add"></a>报价单元</strong>  <strong   style="display: none;color:red;text-align: right; width: 800px;"> &nbsp;&nbsp;&nbsp;&nbsp;合计金额：￥ ${PRICE_TOTAL}</strong  >
				</div>
				<div class="bid_content_inner_gh" id="management">
				<c:if test="${RELEASE_FORM.price_tplt_type != 1}">
				<div style="float:left;width:100%">
				<strong resid="0ec22211-000021" class="bid_quoted_title">产品报价</strong>
				
				
				
		 
				  <c:if test="${RELEASE_FORM.price_tplt_type == 3 && PRICE_AREA == null}">
					 <a   href="javascript:addProdItems();"   id="bidSubmit" class="btn_gray btn_save" style="float:right;margin-top:6px;margin-right:7px">
				        <span resid="0ec22211-000022" class="w_94px h_25px ft_12px">增加报价信息</span> 
				    </a>
			    </c:if> 
			    </div>
			    <div>&nbsp;&nbsp;&nbsp;&nbsp;
			 	<c:if test="${PRICE_AREA != null}">
			    <select id="quete_area" name="quete_area" onchange="return submitByArea();" ><!-- onchange="return getValues();" title="采购组织: ${orgitems}"-->
			    
			     <c:forEach items="${PRICE_AREA}" var="area">
					<option value="${area.pk_areadivision}" title="${area.array_beorg_link}"  <c:if test="${area.pk_areadivision == pk_areadivision}">selected</c:if>>${area.areaname}</option>
				 </c:forEach>
			    </select>
			    <input type="hidden"  id="old_quete_area" name="old_quete_area" value="${old_quete_area}"/>
			     <span id='showorgs' ></span>
			    </c:if >
			    <c:if test="${PRICE_AREA == null}">
			  		<span>采购组织：${org_name}</span><!--  蜀电--数据显示-->
			  		
						   <td>
						      
						              	&nbsp;&nbsp;项目部: <select name="xmb" id="xmb"  onchange="ht_xmb();"> 
						                	<option value="-1" selected>----请选择项目部-----</option> 
						                	<%
						                	
						                	Vector<String[]> xmb =(Vector<String[]>) request.getSession().getAttribute("gys_xmb");
						                	//String select_xmb ="-1";
						                	//if(request.getSession().getAttribute("htxmb")){
						                		//select_xmb= (String)request.getSession().getAttribute("htxmb");
						                	 //}
						                	String  select_xmb= (String)request.getSession().getAttribute("sdhtxmb");
						                	for(int i=0;xmb!=null&&i<xmb.size();i++){
						                	String[] xmb_value=xmb.get(i);
							                	if(select_xmb.equals(xmb_value[0])){
							                	%>
							                		<option value="<%=xmb_value[0]%>" selected><%=xmb_value[1]%></option> 
							                	<%
							                	}else{
							                	%>
							                		<option value="<%=xmb_value[0]%>"><%=xmb_value[1]%></option> 
							                	<%
							                	}
						                	}
						                	%>
											</select> 
											
						    </td>
						    <!--  蜀电--数据显示结束-->
			    </c:if >
			    </div>
			    
			    <div class="subpage_table_quote" >	
			    <div style="overflow:auto;height:500px" >   
				<table id="pricedatatable" class="bid_products" border="0" cellpadding="0" cellspacing="0" style="font-size:12px;">
				
				<thead style="white-space:nowrap;">
					<tr>
				  	<%	
				  		String discount_price="";
				  		for(String itemskey:items){
				  	
				  			%><td sytle="width:10px"><%=mapPriceItemInfo.get(itemskey).get(0) %></td>
				  			<span name='itemskey' style="display:none;"><%=itemskey%></span>
				  		<%
				  		
				  		if("00000055".equals(itemskey)){
				  			discount_price=mapPriceItemInfo.get(itemskey).get(0);
				  		 }
				  		
				  		}
				  	
				  	%>
				  		<!--蜀电添加字段 -->
				  		
				  <td sytle="width:100px">规格型号</td>
				  			<span name='itemskey' style="display:none;">ggxh</span>
				  <!--蜀电添加字段结束 -->
				  <input type='hidden' id="discount_price_name" value='<%=discount_price%>'/>
				
				<!---->
				 <c:if test="${RELEASE_FORM.price_tplt_type == 3 && PRICE_AREA == null}">
				    <td>操作</td>
				    </c:if>
				    </tr>
				</thead>
				<tbody   id='pricedatabody' style="white-space:nowrap;border:solid 1px;">
				
			<% 
				List<PriceDetailForm> listPriceDetailForm = (List<PriceDetailForm>)request.getAttribute("PRICE_DETAIL_FORM");
				for(int k=0;k<listPriceDetailForm.size();k++){
					PriceDetailForm detailForm = listPriceDetailForm.get(k);
					request.setAttribute("pricedetail",detailForm);
					
					List<String> itemstemp=new ArrayList<String>();
					
			%>
					<input type="hidden" name="pk_pricedata_h_temp" value="${pricedetail.pk_pricedata_h}"/>
					<input type="hidden" name="pk_pricedata_b" value="${pricedetail.pk_pricedata_b}"/>
					<input type="hidden" name="detail_pk_pricetplt_h" value="${pricedetail.pk_pricetplt_h}"/>
					<input type="hidden" name="pk_pricetplt_b" value="${pricedetail.pk_pricetplt_b}"/>
					<input type="hidden" name="pk_prod" value="${pricedetail.pk_prod}"/>
					<input type="hidden" name="pk_prod_v" value="${pricedetail.pk_prod_v}"/>
					<input type="hidden" name="pk_prod_cls" value="${pricedetail.pk_prod_cls}"/>
					<input type="hidden" name="pk_prod_unit" value="${pricedetail.pk_prod_unit}"/>
					<input type="hidden" name="prod_src" value="${pricedetail.prod_src}"/>
					<input type="hidden" name="amount_precision" value="${pricedetail.amount_precision}" />
					<input type="hidden" name="row_id" value="${pricedetail.detail_index}" />
					<input type="hidden" name="fun_msg" id="fun_msg" value="0" />
				
					<input class="quote_area" type="hidden" name="quote_area" id="quote_area" value="${pricedetail.quote_area}" />	 
					<tr class="option ${pricedetail.pk_pricedata_b}" id="option" <c:if test="${(s:length(pricedetail.innercode))==4}" >  nujvalue="1" nujian="${pricedetail.innercode}"</c:if><c:if test="${(s:length(pricedetail.innercode))==8}" > style="display: none" zijian="zijian" zijianvlue="${pricedetail.innercode}" </c:if> >
					<!-- 如果来自后台代替应答报价（包含来自价格模板和代替应答添加的结构化和非结构化产品） -->
					<c:if test="${(pricedetail.pk_pricetplt_b != null && (null == pricedetail.pricedata_src || ''==pricedetail.pricedata_src))
					||(pricedetail.pk_pricetplt_b == null && pricedetail.prod_src !='3' && (null == pricedetail.pricedata_src || ''==pricedetail.pricedata_src))}">
							<!-- 产品信息 -->
							 
						    <td >
						    	<input type="hidden" id="prod_fig_src" name="prod_fig_src" value="${pricedetail.prod_src}" />
								<input type="hidden" id="prod_name" name="prod_name" value="${pricedetail.prod_name}"/>
						        <strong id="complate">
							        <c:if test="${pricedetail.prod_name != null && '' !=pricedetail.prod_name}"> 	
										<c:if test="${pricedetail.is_price_all == '1'}"><a class="complate_add" onclick="javascript:complateadd('${pricedetail.innercode}',this);" ></a></c:if><a class="complatefindbra" onclick="javascript:winoptn('${pricedetail.innercode}');"> <c:if test="${(s:length(pricedetail.innercode))==8}" >&nbsp;&nbsp;&nbsp;&nbsp;→</c:if>${pricedetail.prod_name}</a><!-- ++${pricedetail.innercode} -->
										<input type="hidden" name="innercode" id="innercode" value="${pricedetail.innercode}" />
									</c:if>
									<c:if test="${pricedetail.prod_name == null || '' ==pricedetail.prod_name}">													
										${pricedetail.config_note} 
							   		</c:if>   
								</strong>
								<div  style="margin-left:17px;">
									<div  class="form_title "><c:if test="${(s:length(pricedetail.innercode))==8}" ></c:if>
									<c:if test="${pricedetail.prod_code != null || '' ==pricedetail.prod_code}">												
										编码: &nbsp;${pricedetail.prod_code}&nbsp;
							   		</c:if>   
									<input type='hidden' name='sup_prodcode'  value='${pricedetail.prod_code}'/>
									
									<c:if test="${pricedetail.prod_spec != null && ''!=pricedetail.prod_spec }"> 
										<span style="whidth:10px;">
										|规格：&nbsp;${pricedetail.prod_spec}&nbsp;
										</span>
						            </c:if>
									<input type='hidden' name='prod_spec' id='prod_spec' value='${pricedetail.prod_spec}'/>
									<c:if test="${pricedetail.prod_type != null && ''!=pricedetail.prod_type}">
									 	|型号：&nbsp;${pricedetail.prod_type}&nbsp;
									</c:if>
									<input type='hidden' name='prod_type'  id='prod_type' value='${pricedetail.prod_type}'/>
									<c:if test="${pricedetail.project != null && ''!= pricedetail.project }">
									  	|项目：&nbsp;${pricedetail.project}&nbsp;
									 </c:if>
									<c:if test="${pricedetail.producer != null && ''!=pricedetail.producer}">
									  	|厂商：&nbsp;${pricedetail.producer}&nbsp;
									 </c:if>
									
									
									
									</div><!-- 供方产品编码 -->
									<div class="form_field">
										</div>
								</div>
						       
						    </td>
						    
						    
						     <% 	// 描述
						    	 if(mapPriceItemInfo.containsKey("00000047")){
						    		 
						    %>
						    
						    <td>
						            <input type="text" id="config_note" name="config_note" class="textfield pd_2px w_100px h_12px"  value="${pricedetail.config_note}" onchange="setEdit();"/>
						    </td>
						       <% }  %>
						    
						    <% 
						    	for(int i=1;i<=40;i++){
						    		String key = "0000000"+i;
						    		if(key.length() > 8){
						    			key = key.substring(1);
						    		}
						    		itemstemp.add(key);
						    		if(mapPriceItemInfo.containsKey(key)){
						    			String value = (String)detailForm.getAttributeValue("price_def"+i);
						    			if(null == value){
						    				value = "";
						    			}
						    			
						    			if(i < 36){
						    %>
						    <td>
						    	<input type="text" id="price_def<%=i%>" name="price_def<%=i%>" class="textfield pd_2px w_100px h_12px" value="<%=value%>"  onchange="setEdit();"/>
						    </td>
						    <% 
						    			}else{
						    %>
						    <td>
						    	<input type="text" id="<%=k%>_price_def<%=i%>" name="price_def<%=i%>" class="textfieldnew pd_2px w_100px h_12px datepicker" value="<%=value%>"  onchange="setEdit();"/>
						    </td>
						    <% 			
						    			}
						    		} 
						    	}
						    %>
						    <!-- 数量信息 -->
						  
						    <td style="text-align: right;">&nbsp;&nbsp;${pricedetail.amount}&nbsp;&nbsp;&nbsp;&nbsp;
						    	<input type='hidden' id='amount'  name='amount' class="textfield pd_2px w_100px " style="border-style:none;text-align:right"  value='${pricedetail.amount}' readonly/>
								<input type="hidden" id="prod_unit_name" name="prod_unit_name" value="${pricedetail.prod_unit_name}"/>
						    </td>
						    <td style="text-align:center;">
						    ${pricedetail.prod_unit_name}
						    </td>
						    
						    <!-- 报价信息（列改行）  start -->
						     <% 	//含税单价
						    	 if(mapPriceItemInfo.containsKey("00000052")){
						    		 
						    %>
						    
						    <td>
						           <input type="text" id="has_tax_price" name="has_tax_price" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.has_tax_price}" onchange="setEdit();subReduNum(this,'${PRICE_PRECISION}');doCalPrice('${pricedetail.detail_index}');docalPricedata('${pricedetail.detail_index}',this);" onkeypress="javascript:keyPress(this,event);"/>
						    </td>
						       <% }  else{  
						    //隐藏折扣率字段
						    %>
						    	
						    	<input type="hidden"   name="has_tax_price"  value="${pricedetail.has_tax_price}" onchange="setEdit();subReduNum(this,2);" />
						    <%}
						       
						         //基价
						    	 if(mapPriceItemInfo.containsKey("00000050")){
						    		 
						    %>
						    
						     <!-- 基价 -->
						     
						     <td>
						         <input type="text" id="base_price" name="base_price" onchange="setEdit();subReduNum(this,'${PRICE_PRECISION}');doCalPrice('${pricedetail.detail_index}');cal_dis_price('${pricedetail.detail_index}');" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.base_price}" onkeypress="javascript:keyPress(this,event);" />
						    </td>
						    <% }	//折扣率
						    	 if(mapPriceItemInfo.containsKey("00000054")){
						    		 
						    %>
						    
						    <td>
						           <!-- <div resid="0ec22211-000033" class="form_title" style="text-align:left;width:48px">折扣率</div>-->
						           <input type="text"   name="detail_discount" class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.detail_discount}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');docalPricedata('${pricedetail.detail_index}',this);" onkeypress="javascript:keyPress(this,event);" />
						    </td>
						    <% } else{  
						    //隐藏折扣率字段
						    %>
						    	
						    	<input type="hidden"   name="detail_discount"   value="${pricedetail.detail_discount}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);" />
						    <%}
						    
						    	//税率
						    	 if(mapPriceItemInfo.containsKey("00000053")){
						    		 
						    %>
						    
						    <td>
						             <input type="text"   name="tax_rate"  class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.tax_rate}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);" />
						    </td>
						     <% } else{   //隐藏税率字段 %>
						   		  <input type="hidden"   name="tax_rate"   value="${pricedetail.tax_rate}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);" />
						     <%}	//折后单价
						    	 if(mapPriceItemInfo.containsKey("00000055")){
						    		 
						    %>
						    <td>
						              <input type="text"   name="discount_net_price" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.priceAfterDiscount}" onchange="setEdit();subReduNum(this,intPricePrecision);docalPricedata('${pricedetail.detail_index}',this);"   onkeypress="javascript:keyPress(this,event);"/>
						    </td>
						   <!-- 价格属性  end -->
							<% }
					    	for(int i=1;i<=30;i++){
					    		if(mapPriceItemInfo.containsKey("price_item"+i)){
					    			String value = (String)detailForm.getAttributeValue("price_item"+i);
					    			if(null == value){
					    				value = "";
					    			}
						    %>
						    <td>
						    	<input type="text" id="price_item<%=i%>" name="price_item<%=i%>" class="textfield pd_2px w_100px h_12px mnytxt" value="<%=value%>" onchange="setEdit();subReduNum(this,intMnyPrecision);doCalPrice('${pricedetail.detail_index}');cal_dis_price('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);"/>
						    	
						    </td>
						    <% 
						    		}  
						    		}
						    	String edit="false";
						    	for(String itemskey:items){
						    		
						    			if("00000055".equals(itemskey)||"00000053".equals(itemskey)||"00000054".equals(itemskey)
						    			||"00000050".equals(itemskey)||"00000052".equals(itemskey)||itemstemp.contains(itemskey)||itemskey.startsWith("price_item")
						    			||"00000049".equals(itemskey)||"00000048".equals(itemskey)||"00000042".equals(itemskey)
						    			||"00000056".equals(itemskey)||"00000043".equals(itemskey)||"00000047".equals(itemskey))
						    				continue;
						    	
						    			
						    			if(!mapPriceItemInfo.containsKey(itemskey))
						    				continue;
						    		
						    	
						    	
						    		
						    			List<String> item_key=mapPriceItemInfo.get(itemskey);
						    			String name=item_key.get(3);
						    			
						    			
						    			String value = detailForm.getAttributeValue(name)==null?"":detailForm.getAttributeValue(name).toString();
						    			//产品分类
						   
						    			
					    				if(null == value){
					    					value = "";
					    				}
						    	
						    			if("00000046".equals(itemskey)){
						    				name="prod_cls_name";
						    				 value = detailForm.getAttributeValue(name)==null?"":detailForm.getAttributeValue(name).toString();
						    				 edit="true";
						    			}
						    			if("00000059".equals(itemskey)){
						    				 edit="true";
						    			}
						    	
						    			
						    	%>
						    	<td>
						    	<input type="text"  disabled="<%=edit%>" name="<%=name%>"  class="textfield pd_2px w_100px h_12px" value="<%=value%>" onchange="setEdit();" />
						    
						    	
						    	</td>
						    	
						    	 
						    		
						    <%			
						    		 
						    	}
						    %>
						    <td>
						        <span><input type="text"   name="discount_net_sum" class="textfield pd_2px w_100px color_f73107" style="border-style:none;text-align:right" readonly value="${pricedetail.amountAfterDiscount}" /></span>
						    </td>
						    
						     <!--  蜀电--数据显示-->
						   <td>			
						                	<%
						                		String select_ggxh ="";
						                		if(detailForm.getAttributeValue("price_def6")!=null){
						                			select_ggxh= (String)detailForm.getAttributeValue("price_def6");
						                		 }
						                	 %>
									<input type="text" id="price_def6" name="price_def6" class="textfield pd_2px w_100px h_12px mnytxt" value="<%=select_ggxh%>"  />	
						    </td>
						   
						    <!--  蜀电--数据显示结束-->
						  <!--    现注掉 配制单时的操作按钮  xumqc-->
						  <c:if test="${RELEASE_FORM.price_tplt_type == 3 && PRICE_AREA == null}">
							<td>
								<a class="btn_fdelete mrg_0x25px deleteprod hand" ></a>
						 	</td>
							</c:if>
					</c:if>
					<!-- 如果来自统一定价 门户不可修改 -->
					<c:if test="${pricedetail.pk_pricetplt_b != null && null != pricedetail.pricedata_src}">
						<div class="bid_products_body bg_f8">
							<!-- 产品信息 -->
						    <div class="first_column">
						    	<input type="hidden" id="prod_name" name="prod_name" value="${pricedetail.prod_name}" />
						        <strong>
						        	${pricedetail.detail_index}、${pricedetail.prod_name}
								</strong>
								<div class="form_row w_100ps" style="margin-left:17px;">
									<div  class="form_title "><!-- 编码 &nbsp;&nbsp;${pricedetail.prod_code} -->
									<c:if test="${pricedetail.prod_code != null || '' ==pricedetail.prod_code}">													
										编码: &nbsp;&nbsp;${pricedetail.prod_code}&nbsp;
							   		</c:if>  
									
									
									</div><!-- 供方产品编码 -->
									<div class="form_field">
										<!-- <input type='text' id='sup_prodcode' name='sup_prodcode' class="textfield pd_2px w_100px h_12px" style="background-color:white" value='${pricedetail.sup_prodcode}' />-->
									</div>
								</div>
						        <dl class="bid_product_config">
						            <c:if test="${pricedetail.prod_spec != null && ''!=pricedetail.prod_spec }"> 
										<dt resid="0ec22211-000027">规格：</dt>
						            	<dd>${pricedetail.prod_spec}</dd>
						            </c:if>
									<input type='hidden' name='prod_spec' id='prod_spec' value='${pricedetail.prod_spec}'/>
									<c:if test="${pricedetail.prod_type != null && ''!=pricedetail.prod_type}">
									 	<dt resid="0ec22211-000028">型号：</dt>
						            	<dd>${pricedetail.prod_type}</dd>
									</c:if>
									<input type='hidden' name='prod_type'  id='prod_type' value='${pricedetail.prod_type}'/>
									<c:if test="${pricedetail.project != null && ''!= pricedetail.project }">
									  	<dt resid="0ec22211-000029"> 项目：</dt>
						            	<dd>${pricedetail.project}</dd>
									 </c:if>
									<c:if test="${pricedetail.producer != null && ''!=pricedetail.producer}">
									  	<dt resid="0ec22211-000030">厂商：</dt>
						            	<dd>${pricedetail.producer}</dd>
									 </c:if>
									<c:if test="${pricedetail.asistantproperty != null && '' !=pricedetail.asistantproperty}">
									  	<dt resid="0ec22211-000031">描述：</dt>
										<dd>${pricedetail.asistantproperty}</dd>
									 </c:if>
									<c:if test="${pricedetail.asistantproperty != null && '' != pricedetail.asistantproperty && pricedetail.config_note != null && '' != pricedetail.config_note}">
										,${pricedetail.config_note}
									</c:if>
									<c:if test="${(pricedetail.prod_name != null && '' != pricedetail.prod_name) && (pricedetail.asistantproperty == null || '' ==pricedetail.asistantproperty) && pricedetail.config_note != null && '' != pricedetail.config_note}">
										<dt resid="0ec22211-000031">描述：</dt>
										<dd>${pricedetail.config_note}</dd>
									</c:if>
									<input type="hidden" name="config_note" id="config_note" value="${pricedetail.config_note}"/>
						        </dl>
						    </div>
						    <!-- 数量信息 -->
						    <div class="amount_column">
						    	<input type='text'   name='amount' class="textfield pd_2px w_100px mnytxt" style="border-style:none;text-align:right"  value='${pricedetail.amount}' readonly/>${pricedetail.prod_unit_name}
								<input type="hidden" id="prod_unit_name" name="prod_unit_name" value="${pricedetail.prod_unit_name}"/>
						    </div>
						     <!-- 报价信息 -->
						    <div class="price_column">
						        <div class="form_row w_100ps">
						            <div resid="0ec22211-000032" class="form_title" style="text-align:left;width:48px">含税单价：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="has_tax_price" name="has_tax_price" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.has_tax_price}" onchange="subReduNum(this,'${PRICE_PRECISION}');doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);"/>
						                </label>
						            </div>
						        </div>
						       	<div class="form_row w_100ps">
						            <div resid="0ec22211-000033" class="form_title" style="text-align:left;width:48px">折扣率：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="detail_discount" name="detail_discount" class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.detail_discount}" onchange="subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);" />
						                </label>
						            </div>
						        </div>
						        <div class="form_row w_100ps">
						            <div resid="0ec22211-000034" class="form_title" style="text-align:left;width:48px">税率：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="tax_rate" name="tax_rate"  class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.tax_rate}" onchange="subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);" />
						                </label>
						            </div>
						        </div>
						        <div class="form_row w_100ps">
						            <div resid="0ec22211-000035" class="form_title" style="text-align:left;width:48px">折后价：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="discount_net_price" name="discount_net_price" class="textfield pd_2px w_100px h_12px mnytxt" readonly value="${pricedetail.priceAfterDiscount}" />
						                </label>
						            </div>
						        </div>
						    </div>
						    <div class="last_column">
						        <span><input type="text" id="discount_net_sum" name="discount_net_sum" class="textfield pd_2px w_100px color_f73107" style="border-style:none;text-align:right" readonly value="${pricedetail.amountAfterDiscount}" /></span>
						    </div>
						     
						</div>
					</c:if>
					<!-- 门户自己添加产品 -->
					<c:if test="${pricedetail.pk_pricetplt_b == null &&  pricedetail.prod_src =='3' && 1==2}">
						<div id="${pricedetail.pk_pricedata_b}" class="bid_products_body bg_f8">
							<!-- 产品信息 -->
						    <div class="first_column">
						    	<input type="hidden" id="prod_name" name="prod_name" value="${pricedetail.prod_name}" />
						        <strong>
						        	${pricedetail.detail_index}、${pricedetail.prod_name}
								</strong>
								<div class='form_row w_100ps' style='margin-left:17px;'>
									<div  class="form_title w_80px"><!-- 编码 &nbsp;&nbsp;${pricedetail.prod_code} -->
									<c:if test="${pricedetail.prod_code != null || '' ==pricedetail.prod_code}">													
										编码: &nbsp;&nbsp;${pricedetail.prod_code}
							   		</c:if> 
									</div><!-- 供方产品编码 -->
									<div class="form_field">
										<!-- <input type='text' id='sup_prodcode' name='sup_prodcode' class="textfield pd_2px w_100px h_12px" style="background-color:white" value='${pricedetail.sup_prodcode}' />-->
									</div>
								</div>
						        <dl class="bid_product_config" style='margin-top:0px;'>
									<dt resid="0ec22211-000027">规格</dt>
									<dd>
										<input type='text' id='prod_spec' name='prod_spec' class="textfield pd_2px w_100px h_12px" style='background-color:white;' value='${pricedetail.prod_spec}' />
									</dd>
								</dl>
								<dl class="bid_product_config" style='margin-top:0px;'>
									<dt resid="0ec22211-000028">型号</dt>
									<dd>
										<input type='text' id='prod_type' name='prod_type' class="textfield pd_2px w_100px h_12px" style='background-color:white;' value='${pricedetail.prod_type}' />
									</dd>
								</dl>
								<dl class="bid_product_config" style='margin-top:0px;'>
									<dt resid="0ec22211-000031">描述</dt>
									<dd>
										<input type='text' id='config_note' name='config_note' class="textfield pd_2px w_100px h_12px" style='background-color:white;' value='${pricedetail.config_note}' />
									</dd>
						        </dl>
						    </div>
						    <!-- 数量信息 -->
						    <div class="amount_column">
						    	<dl class='bid_product_config' style='margin-left:0px;margin-top:0px;margin-bottom:0px'>
						    		<dt resid="0ec22211-000036">数量</dt>
						    		<dd style='width:59px'>
						    			<input type='text'   name='amount' class="textfield pd_2px w_66px h_12px mnytxt" style='background-color:white;' value='${pricedetail.amount}' onchange="subReduNum(this,'${pricedetail.amount_precision}');doCalPrice(${pricedetail.detail_index});" onkeypress="javascript:keyPress(this,event);" />
						    		</dd>
						    	</dl>
						    	<dl class='bid_product_config' style='margin-left:0px;margin-top:0px;margin-bottom:0px'>
							    	<dt resid="0ec22211-000037">单位</dt>
							    	<dd style='width:59px'>
							    		<input type='text' id='prod_unit_name' name='prod_unit_name' class="textfield pd_2px w_66px h_12px mnytxt" style='background-color:white;' value='${pricedetail.prod_unit_name}' />
							    	</dd>
						    	</dl>
						    </div>
						     <!-- 报价信息 -->
						    <div class="price_column">
						        <div class="form_row w_100ps">
						            <div resid="0ec22211-000032" class="form_title" style="text-align:left;width:48px">含税单价：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="has_tax_price" name="has_tax_price" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.has_tax_price}" onchange="subReduNum(this,'${PRICE_PRECISION}');doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);"/>
						                </label>
						            </div>
						        </div>
						       	<div class="form_row w_100ps">
						            <div resid="0ec22211-000033" class="form_title" style="text-align:left;width:48px">折扣率：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="detail_discount" name="detail_discount" class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.detail_discount}" onchange="subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);" />
						                </label>
						            </div>
						        </div>
						        <div class="form_row w_100ps">
						            <div resid="0ec22211-000034" class="form_title" style="text-align:left;width:48px">税率：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="tax_rate" name="tax_rate"  class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.tax_rate}" onchange="subReduNum(this,2);doCalPrice('${pricedetail.detail_index}');" onkeypress="javascript:keyPress(this,event);" />
						                </label>
						            </div>
						        </div>
						        <div class="form_row w_100ps">
						            <div resid="0ec22211-000035" class="form_title" style="text-align:left;width:48px">折后价：</div>
						            <div class="form_field">
						                <label>
						                	<input type="text" id="discount_net_price" name="discount_net_price" class="textfield pd_2px w_100px h_12px mnytxt" readonly value="${pricedetail.priceAfterDiscount}" />
						                </label>
						            </div>
						        </div>
						      
						        
						    </div>
							<div class="last_column">
						        <span><input type="text" id="discount_net_sum" name="discount_net_sum" class="textfield pd_2px w_100px color_f73107" style="border-style:none;text-align:right" readonly value="${pricedetail.amountAfterDiscount}" /></span>
						    </div>
						 
						 <!--  现注掉 配制单时的操作按钮  xumqc-->
							<div class="btn_column">
							<c:if test="${RELEASE_FORM.price_tplt_type == 3 && PRICE_AREA == null}">
								<a class="btn_delete mrg_0x25px deleteprod hand" onclick="removeProdItem('${pricedetail.pk_pricedata_b}')"></a>
							</c:if>
							</div>
						</div>
					</c:if>
					<c:if test="${pricedetail.pk_pricetplt_b == null &&  pricedetail.prod_src =='3'}">
					
					<td >
								<input type="hidden" id="prod_fig_src" name="prod_fig_src" value="${pricedetail.prod_src}" />
								<input type="hidden" id="prod_name" name="prod_name" value="${pricedetail.prod_name}"/>
						        <strong id="complate">
							    
								</strong>
								<div  style="margin-left:17px;">
									<div  class="form_title ">
									<span>编码：</span><input type="text" id="sup_prodcode" name="sup_prodcode" class="textfield pd_2px w_100px h_12px"  value="${pricedetail.sup_prodcode}" style="float:none;"/>
									<span>规格：</span><input type="text" id="prod_spec" name="prod_spec" class="textfield pd_2px w_100px h_12px"  value="${pricedetail.prod_spec}" style="float:none;"/>
									<span>型号：</span><input type="text" id="prod_type" name="prod_type" class="textfield pd_2px w_100px h_12px"  value="${pricedetail.prod_type}" style="float:none;"/>
									</div><!-- 供方产品编码 -->
									<div class="form_field">
										<!-- <input type='text' id='sup_prodcode' name='sup_prodcode' class="textfield pd_2px w_100px h_12px" style="background-color:white" value='${pricedetail.sup_prodcode}' />-->
									</div>
								</div>
						       
						    </td>
						     <% 	// 描述
						    	 if(mapPriceItemInfo.containsKey("00000047")){
						    		 
						    %>
						    
						    <td>
						    <div class="form_row w_100ps">
						           <input type="text" id="config_note" name="config_note" class="textfield pd_2px w_100px h_12px"  value="${pricedetail.config_note}" />
						    </div>
						    </td>
						       <% }  %>
						    <% 
						    	for(int i=1;i<=40;i++){
						    		String key = "0000000"+i;
						    		if(key.length() > 8){
						    			key = key.substring(1);
						    		}
						    		itemstemp.add(key);
						    		if(mapPriceItemInfo.containsKey(key)){
						    			String value = (String)detailForm.getAttributeValue("price_def"+i);
						    			if(null == value){
						    				value = "";
						    			}
						    			if(i < 36){
						    %>
						    <td>
						    	<input type="text" id="price_def<%=i%>" name="price_def<%=i%>" class="textfield pd_2px w_100px h_12px mnytxt" value="<%=value%>"  onchange="setEdit();"/>
						    </td>
						    <% 
						    			}else{
						    %>
						    <td>
						    	<input type="text" id="<%=k%>_price_def<%=i%>" name="price_def<%=i%>" class="textfieldnew pd_2px w_100px h_12px datepicker" value="<%=value%>"  onchange="setEdit();"/>
						    </td>
						    <% 			
						    			}
						    		} 
						    	}
						    %>
						    <!-- 数量信息 -->
						  
						    <td>
						    <div class="form_row w_100ps">
						   		 <input type="text" id="amount" name="amount" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.amount}"/>
							 </div>	
						    </td>
						    <td style="text-align:center;">
						     <div class="form_row w_100ps" >
						  		 <input type="text" id="prod_unit_name" name="prod_unit_name" class="textfield pd_2px w_100px h_12px countxt"  value="${pricedetail.prod_unit_name}"/>
						   	 </div>
						    </td>
						    
						    <!-- 报价信息（列改行）  start -->
						     <% 	//含税单价
						    	 if(mapPriceItemInfo.containsKey("00000052")){
						    		 
						    %>
						    
						    <td>
						    <div class="form_row w_100ps">
						                
						                	<input type="text" id="has_tax_price" name="has_tax_price" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.has_tax_price}" onchange="setEdit();subReduNum(this,'${PRICE_PRECISION}');doCalPrice('${pricedetail.detail_index}',this);docalPricedata('${pricedetail.detail_index}',this);" onkeypress="javascript:keyPress(this,event);"/>
						               
						    </div>
						    </td>
						       <% }  else{  
						    //隐藏折扣率字段
						    %>
						    	
						    	<input type="hidden"   name="has_tax_price"  value="${pricedetail.has_tax_price}" onchange="setEdit();subReduNum(this,2);" />
						    <%}
						       
						         //基价
						    	 if(mapPriceItemInfo.containsKey("00000050")){
						    		 
						    %>
						    
						     <!-- 基价 -->
						     
						     <td>
						    <div class="form_row w_100ps">
						                <label>
						                	<input type="text" id="base_price" name="base_price" onchange="setEdit();subReduNum(this,'${PRICE_PRECISION}');doCalPrice('${pricedetail.detail_index}',this);" class="textfield pd_2px w_100px h_12px"  value="${pricedetail.base_price}" />
						                </label>
						    </div>
						    </td>
						    <% }	//折扣率
						    	 if(mapPriceItemInfo.containsKey("00000054")){
						    		 
						    %>
						    
						    <td>
						    <div class="form_row w_100ps">
						           <!-- <div resid="0ec22211-000033" class="form_title" style="text-align:left;width:48px">折扣率</div>-->
						                <label>
						                	<input type="text"   name="detail_discount" class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.detail_discount}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}',this);" onkeypress="javascript:keyPress(this,event);" />
						                </label>
						        </div>
						    </td>
						    <% } else{  
						    //隐藏折扣率字段
						    %>
						    	
						    	<input type="hidden"   name="detail_discount"   value="${pricedetail.detail_discount}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}',this);" onkeypress="javascript:keyPress(this,event);" />
						    <%}
						    
						    	//税率
						    	 if(mapPriceItemInfo.containsKey("00000053")){
						    		 
						    %>
						    
						    <td>
						     <div class="form_row w_100ps">
						                <label>
						                	<input type="text"   name="tax_rate"  class="textfield pd_2px w_100px h_12px mnytxt" value="${pricedetail.tax_rate}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}',this);" onkeypress="javascript:keyPress(this,event);" />
						                </label>
						        </div>
						    </td>
						     <% } else{   //隐藏税率字段 %>
						   		  <input type="hidden"   name="tax_rate"   value="${pricedetail.tax_rate}" onchange="setEdit();subReduNum(this,2);doCalPrice('${pricedetail.detail_index}',this);" onkeypress="javascript:keyPress(this,event);" />
						     <%}	//折后单价
						    	 if(mapPriceItemInfo.containsKey("00000055")){
						    		 
						    %>
						    <td>
						    <div class="form_row w_100ps">
						                <label>
						                	<input type="text"   name="discount_net_price" class="textfield pd_2px w_100px h_12px mnytxt"  value="${pricedetail.priceAfterDiscount}" onchange="setEdit();subReduNum(this,2);docalPricedata('${pricedetail.detail_index}',this);"/>
						                </label>
						        </div>
						    </td>
						   <!-- 价格属性  end -->
							<% }
					    	for(int i=1;i<=30;i++){
					    		if(mapPriceItemInfo.containsKey("price_item"+i)){
					    			String value = (String)detailForm.getAttributeValue("price_item"+i);
					    			if(null == value){
					    				value = "";
					    			}
						    %>
						    <td>
						    	<input type="text" id="price_item<%=i%>" name="price_item<%=i%>" class="textfield pd_2px w_100px h_12px mnytxt" value="<%=value%>" onchange="setEdit();subReduNum(this,intMnyPrecision);doCalPrice('${pricedetail.detail_index}',this);"/>
						    </td>
						    <% 
						    		} 
						    	}
						    	String edit="false";
						    	for(String itemskey:items){
						    		
						    			if("00000055".equals(itemskey)||"00000053".equals(itemskey)||"00000054".equals(itemskey)
						    			||"00000050".equals(itemskey)||"00000052".equals(itemskey)||itemstemp.contains(itemskey)||itemskey.startsWith("price_item")
						    			||"00000049".equals(itemskey)||"00000048".equals(itemskey)||"00000042".equals(itemskey)
						    			||"00000056".equals(itemskey)||"00000043".equals(itemskey)||"00000047".equals(itemskey))
						    				continue;
						    	
						    			
						    			if(!mapPriceItemInfo.containsKey(itemskey))
						    				continue;
						    		
						    	
						    	
						    		
						    			List<String> item_key=mapPriceItemInfo.get(itemskey);
						    			String name=item_key.get(3);
						    			
						    			
						    			String value = detailForm.getAttributeValue(name)==null?"":detailForm.getAttributeValue(name).toString();
						    			//产品分类
						   
						    			
					    				if(null == value){
					    					value = "";
					    				}
						    	
						    			if("00000046".equals(itemskey)){
						    				name="prod_cls_name";
						    				 value = detailForm.getAttributeValue(name)==null?"":detailForm.getAttributeValue(name).toString();
						    				 edit="true";
						    			}
						    			if("00000059".equals(itemskey)){
						    				 edit="true";
						    			}
						    	
						    			
						    	%>
						    	<td>
						    	<input type="text"  disabled="<%=edit%>" name="<%=name%>"  class="textfield pd_2px w_100px h_12px" value="<%=value%>" onchange="setEdit();" />
						    
						    	
						    	</td>
						    	
						    	
						    		
						    <%			
						    		 
						    	}
						    %>
						    
						    <td>
						        <span><input type="text"   name="discount_net_sum" class="textfield pd_2px w_100px color_f73107" style="border-style:none;text-align:right" readonly value="${pricedetail.amountAfterDiscount}" /></span>
						    </td>
						   
						<!--	
							现注掉 配制单时的操作按钮  xumqc-->
							<c:if test="${RELEASE_FORM.price_tplt_type == 3 && PRICE_AREA == null}">
							 <td>
								<a class="btn_delete mrg_0x25px deleteprod hand" onclick="removeProdItemnew('${pricedetail.pk_pricedata_b}')"></a>
							 </td>
							 </c:if>
					</c:if>
					
					</tr>
					
				<%}%>
				</tbody>
				</table>
				</div>
				</div>
				<div class="bid_product_prices bdbtm_dashed" >
					<div class="float_left"></div>
				    <div class="float_right w_172px">
				        <strong resid="0ec22211-000038" class="float_left">金额：</strong>
				        <label class="float_left">
					        	<input type="text" id="prod_total_amount" name="prod_total_amount"  value="${PRICE_TOTAL_PROD}" class="textfield" style="border-style:none;text-align:left;margin:17px 0;width:120px;font-weight:bold;color:#FB0000" readOnly />
				        </label>
				    </div>
				</div>
				</c:if>
				
				
				<c:forEach items="${PRICE_FORM}" var="price">
					
					<div id="noprodPricedata">
					<input type="hidden" name="signature" value="${price.signature}"/>
					<input type="hidden" name="pk_pur_project" value="${price.pk_pur_project}"/>
					<input type="hidden" name="pk_purproj_step" value="${price.pk_purproj_step}"/>
					<input type="hidden" name="pk_release_h" value="${price.pk_release_h}"/>
					<input type="hidden" name="pk_pricetplt_h" value="${price.pk_pricetplt_h}"/>
					<input type="hidden" name="pk_supplier" value="${price.pk_supplier}"/>
					<input type="hidden" name="pk_pricedata_h" value="${price.pk_pricedata_h}"/>
					<input type="hidden" name="is_prod_item"  value="${price.is_prod_item}"/>
					<input type='hidden' name="price_unit"  value="${price.price_unit}"/>
					
					<c:if test="${price.is_prod_item == 'y' ||  price.is_prod_item =='Y'}">
						<input type="hidden"   name="total_amount" class="textfield w_100px pd_5x2px h_12px" value="${price.total_amount}"  />
					</c:if>
					</div>
					<c:if test="${price.is_prod_item == 'n' ||  price.is_prod_item =='N'}">
						<div class="bid_product_prices bdbtm_dashed" >
						
						    <div class="float_left">${price.price_unit}</div>
						    <div class="float_right w_172px">
						        <strong resid="0ec22211-000038" class="float_left">金额：</strong>
						        <!-- 非明细报价 -->
						        <label class="float_left">
						        <input  name="total_amount" class="textfield w_100px pd_5x2px h_12px" value="${price.total_amount}" onchange="subReduNum(this,'${MONEY_PRECISION}');doCalLastTotalAmount();" onkeypress="javascript:keyPress(this,event);" />
						        </label>
						    </div>
						</div>
					</c:if>
					
				
				
				</c:forEach>
				<!--  
				<div class="bid_submit_btn" id="importuse">
					 
				    <a href="javascript:exportPriceData();" id="exportdata"  class="btn_gray btn_save" style="float:right;margin-top:6px;margin-right:7px">
				        <span   class="w_80px h_25px ft_12px">导出</span>
				    </a>
				      
				     <a href="javascript:importPriceData();" id="importdata"  class="btn_gray btn_save" style="float:right;margin-top:6px;margin-right:7px">
				        <span   class="w_80px h_25px ft_12px">导入</span>
				    </a>
				</div>
				-->
				</div>
				</c:if>
			</div>


		</div>
	</div>
</div>	
				
				
				
<div class="float_center doc_width" >
	<div class="doc_content_shadow" ><!-- id="management2" 说明引用id -->
		<div class="doc_content">
			<div class="bid_content_gh">				
				<div class="bid_module_title single">
					<strong resid="0ec22211-000039">说明</strong>
					<c:if test="${RELEASE_FORM.is_quote == \"true\"}">
				    <div class="float_right w_230px">
				    	<dl class="amount single">
				        	<dt resid="0ec22211-000040">合计金额：</dt>
				        	<dd><input type="text" id="last_total_amount" name="last_total_amount" value="${PRICE_TOTAL}" class="textfield" style="border-style:none;text-align:left;margin:8px 0;width:120px;font-weight:bold;color:#FB0000;font-size:15px;font-weight:bold" readOnly /></dd>
				        </dl>
				    </div>
				    </c:if>
				</div>
				<div id="bidDeliverForm" class="bid_content_inner_gh pd_10x0px">
					<c:forEach items="${REPLY_OTHER_ITEM_FORM}" var="otherInfo">
					<input type="hidden" id="pk_reply_other_b" name="pk_reply_other_b" value="${otherInfo.pk_reply_other_b}"/>
					<input type="hidden" id="pk_assistinfo_b" name="pk_assistinfo_b" value="${otherInfo.pk_assistinfo_b}"/>
					<div class="form_row">
					    <div class="form_title w_94px">
					    <input type="hidden" id="assistinfo" name="assistinfo" value="${otherInfo.assistinfo}"/>
					    ${otherInfo.assistinfo}</div>
					    <div class="form_field">
					        <label>
					            <textarea id="other_info" name="other_info" rows="4" cols="50" class="textfield pd_5x2px w_485px"><c:if test="${otherInfo.other_info != null}">${otherInfo.other_info}</c:if></textarea>
					        </label>
					    </div>
					</div>
					</c:forEach>
					<div class="form_row">
					    <div resid="0ec22211-000092" class="form_title w_94px">应答说明</div>
					    <div class="form_field">
					        <label>
					            <textarea id="reply_note" name="reply_note" rows="4" cols="50" class="textfield pd_5x2px w_485px"><c:if test="${REPLY_FORM.reply_note != null}">${REPLY_FORM.reply_note}</c:if></textarea>
					        </label>
					    </div>
					</div>
				</div>
				<div class="bid_submit_btn">
					<% if (!"readOnly".equals(strReadOnly)){%>
				    <a href="javascript:doReply();" id="bidSubmit" class="btn_orange" >
				        <span resid="0ec22211-000048" class="w_80px h_25px ft_12px">提交</span>
				    </a>
				    <%}%>
				</div>
				<div id="show_msg" style="color:red;float:left;height:31px;margin-top:17px;text-align:right;width:635px;">
				</div>
			</div>
			
		</div>
	</div>
</div>

<div class="float_center doc_width" style="display: none;" id="title1">
	<div class="doc_content_shadow">
		<div class="doc_content">
			<div class="bid_content_gha">				
				<div class="bid_module_title single" style="height:480px">
				</div>
			</div>
			
		</div>
	</div>
</div>

<div class="float_center doc_width" style="display: block;" id="title2">
	<div class="doc_content_shadow">
		<div class="doc_content">
			<div class="bid_content_ghb">				
				<div class="bid_module_title single" style="height:50px">
				</div>
			</div>
			
		</div>
	</div>
</div>

</form>
<form id="calpriceform" name="calpriceform" method="post" action="<%=basePath%>/sourcing/biddingprojlist/calprice">
	<!-- 集团 -->
	<input type="hidden" id="pk_group_cal" name="pk_group_cal" value="${PURPROJECT_FORM.pk_group}"/>
	<input type="hidden" id="pk_org_cal" name="pk_org_cal" value="${PURPROJECT_FORM.pk_org}"/>
	<!-- 产品 -->
	<input type="hidden" id="pk_prod_cal" name="pk_prod_cal" value=""/>
	<!-- 报价币种 -->
	<input type="hidden" id="pk_currency_cal" name="pk_currency_cal" value="${PURPROJECT_FORM.pk_currency}"/>
	<!-- 报价单位 -->
	<input type="hidden" id="pk_unit_cal" name="pk_unit_cal" value=""/>
	<!-- 主单位 -->
	<input type="hidden" id="pk_primary_unit_cal" name="pk_primary_unit_cal" value=""/>
	<!-- 报价数量 -->
	<input type="hidden" id="amount_cal" name="amount_cal" value=""/>
	<!-- 主数量 -->
	<input type="hidden" id="primary_amount_cal" name="primary_amount_cal" value=""/>
	<!-- 换算率 -->
	<input type="hidden" id="conversion_rate_cal" name="conversion_rate_cal" value=""/>
	<!-- 扣税类别 -->
	<input type="hidden" id="tax_type_cal" name="tax_type_cal" value=""/>
	<!-- 税率 -->
	<input type="hidden" id="tax_rate_cal" name="tax_rate_cal" value=""/>
	<!-- 折扣率 -->
	<input type="hidden" id="discount_rate_cal" name="discount_rate_cal" value=""/>
	<!-- 含税单价 -->
	<input type="hidden" id="has_tax_price_cal" name="has_tax_price_cal" value=""/>
	<!-- 含税金额 -->
	<input type="hidden" id="has_tax_sum_cal" name="has_tax_sum_cal" value=""/>
	<!-- 含税净价 -->
	<input type="hidden" id="has_tax_net_price_cal" name="has_tax_net_price_cal" value=""/>
	<!-- 主含税净价 -->
	<input type="hidden" id="primary_hastax_net_price_cal" name="primary_hastax_net_price_cal" value=""/>
	<!-- 无税单价 -->
	<input type="hidden" id="no_tax_price_cal" name="no_tax_price_cal" value=""/>
	<!-- 无税金额 -->
	<input type="hidden" id="no_tax_sum_cal" name="no_tax_sum_cal" value=""/>
	<!-- 无税净价 -->
	<input type="hidden" id="no_tax_net_price_cal" name="no_tax_net_price_cal" value=""/>
	<!-- 主无税净价 -->
	<input type="hidden" id="primary_notax_net_price_cal" name="primary_notax_net_price_cal" value=""/>
	<!-- 价税合计 -->
	<input type="hidden" id="price_tax_sum_cal" name="price_tax_sum_cal" value=""/>
	<input type="hidden" id="tax_sum_cal" name="tax_sum_cal" value=""/>
	<!-- 计算字段顺序 -->
	<input type="hidden" id="property_cal" name="property_cal" value="has_tax_price|amount"/>
	
		<input type="hidden" id="base_price" name="base_price" value=""/>
	<input type="hidden" id="price_item1" name="price_item1" value=""/>
	<input type="hidden" id="price_item2" name="price_item2" value=""/>
	<input type="hidden" id="price_item3" name="price_item3" value=""/>
	<input type="hidden" id="price_item4" name="price_item4" value=""/>
	<input type="hidden" id="price_item5" name="price_item5" value=""/>
	<input type="hidden" id="price_item6" name="price_item6" value=""/>
	<input type="hidden" id="price_item7" name="price_item7" value=""/>
	<input type="hidden" id="price_item8" name="price_item8" value=""/>
	<input type="hidden" id="price_item9" name="price_item9" value=""/>
	
	<input type="hidden" id="price_item10" name="price_item10" value=""/>
	<input type="hidden" id="price_item11" name="price_item11" value=""/>
	<input type="hidden" id="price_item12" name="price_item12" value=""/>
	<input type="hidden" id="price_item13" name="price_item13" value=""/>
	<input type="hidden" id="price_item14" name="price_item14" value=""/>
	<input type="hidden" id="price_item15" name="price_item15" value=""/>
	<input type="hidden" id="price_item16" name="price_item16" value=""/>
	<input type="hidden" id="price_item17" name="price_item17" value=""/>
	<input type="hidden" id="price_item18" name="price_item18" value=""/>
	<input type="hidden" id="price_item19" name="price_item19" value=""/>
	
	<input type="hidden" id="price_item20" name="price_item20" value=""/>
	<input type="hidden" id="price_item21" name="price_item21" value=""/>
	<input type="hidden" id="price_item22" name="price_item22" value=""/>
	<input type="hidden" id="price_item23" name="price_item23" value=""/>
	<input type="hidden" id="price_item24" name="price_item24" value=""/>
	<input type="hidden" id="price_item25" name="price_item25" value=""/>
	<input type="hidden" id="price_item26" name="price_item26" value=""/>
	<input type="hidden" id="price_item27" name="price_item27" value=""/>
	<input type="hidden" id="price_item28" name="price_item28" value=""/>
	<input type="hidden" id="price_item29" name="price_item29" value=""/>
	<input type="hidden" id="price_item30" name="price_item30" value=""/>
	<input type="hidden" id="innercode_cal" name="innercode_cal" value=""/>
</form>
<script language="javascript">
		

	//寻源环节导航栏
	$.ajax( {
		url : "<%=request.getContextPath()%>/sourcing/biddingprojlist/projexec?pk_pur_project=${PURPROJECT_FORM.pk_pur_project}&randomid="+new Date(),
		type : "GET",
		data : "",
		dataType : "text",
		async : false,
		success : function(responseText) {
		    		showSteps(responseText);
		  		}

	});
	
	//应答截止时间
	var overDate = ${DISMILL} * 1000;
    var NowTime = new Date();
    var EndTime= new Date(NowTime.getTime() + overDate); 
    $( "#countdownTimer" ).UICountdown({ 'endTime': EndTime, 'titleShadow': true });
    $( "#bidInvitedForm input, #bidInvitedForm textarea" ).UITipInside();
    
    //设置界面显示精度
    //setShowPrecision();
	roundTwo2();
	afterReplyMsgShow();
	<% if ("readOnly".equals(strReadOnly)){%>
	$("form input").prop("readOnly",true);
	$("textarea").prop("readOnly",true);;
	<% }%>


	 
	var area_title="";
   
  	$("#quete_area option").each(function(){
  			var title=$(this).attr("title");
  	 	 	
  	 	 	if($(this).attr("selected")){
  	 	 		 area_title=title;
  	 	 	}
  	 	 
  			$(this).attr("title","采购组织："+title);
  	});
  		$("#quete_area").attr("title","采购组织："+area_title);
 

 	function setEdit(){
 		is_edit=true;
 	}
 	
 	function checkIfCanEdit(){
		 	if(is_canprice ==3||is_canprice ==4){
				setEditPricedata(false);
				} 
						
			var accounttime=EndTime.getTime()-NowTime.getTime();
			
			if((is_canprice ==2&&accounttime<=0)){
					setEditPricedata(false);
				}
				
			
				
 	}
 	
 	$(document).ready(
			function(){
				
				checkIfCanEdit();
				var quete_area=$("#quete_area");
				if(quete_area!=null&&"undefined"!=quete_area){
				
					
					//切换区域的时候 重算总价
					doCalTotal_Amount();
				}
			
				 
//				$(".mnytxt").each(function(){
//					$(this).bind("onkeypress",function(){keyPress(this,event);});
//				});
					 
			}
		);
  		

  		
</script>
</body>
</html>